package com.example.hospital_208.dao;

import com.example.hospital_208.po.DoctorWork;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DoctorWorkDao {
    List<DoctorWork> findAllDoctorWorks();

    DoctorWork findDoctorWorkByDocIdAndDay(String doc_id, String day);

    List<DoctorWork> findDoctorWorksByDocId(String doc_id);  // 新增

    List<DoctorWork> findDoctorWorksByDay(String day);  // 新增

    int insertDoctorWork(DoctorWork doctorWork);

    int updateDoctorWork(DoctorWork doctorWork);

    int deleteDoctorWorkByDocIdAndDay(String doc_id, String day);

    int deleteDoctorWorksByDocId(String doc_id);  // 新增
}